package com.hui.task;

import com.hui.crawler.CrawlerFactory;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 *
 * @Description des
 *
 * @Author Administrator
 * @Date 2017/5/27 0027
 * @version 0.0.1.
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class SimpleCrawlerTask {

    private CrawlerFactory crawlerFactory;

    @Scheduled(fixedRate = 500)
    public void task1(){
        log.info("task1");
    }
}
